package com.czc.cca.ddl;

import org.zoomdev.zoom.dao.ddl.SqlType;
import org.zoomdev.zoom.dao.ddl._DDL_Column;
import org.zoomdev.zoom.dao.ddl._DDL_Primary;
import org.zoomdev.zoom.dao.ddl._DDL_Table;
import org.zoomdev.zoom.dao.driver.mysql.MysqlDriver;

@_DDL_Table(name = "a_user", simpleName = "", engine = MysqlDriver.InnoDB, comment = "用户账号表")
public class _DDL_AUser {

    @_DDL_Primary()
    @_DDL_Column(name = "id", type = SqlType.INT_UNSIGNED, nullable = false, autoIncrement = true, comment = "id")
    private Long id;

    @_DDL_Column(name = "acc", type = SqlType.VARCHAR, size = 20, comment = "账号")
    private String acc;

    @_DDL_Column(name = "pwd", type = SqlType.VARCHAR, size = 64, comment = "密码密文")
    private String pwd;

    @_DDL_Column(name = "role", type = SqlType.VARCHAR, size = 4, comment = "用户角色")
    private String role;

    @_DDL_Column(name = "salt", type = SqlType.VARCHAR, size = 32, comment = "密文随机数")
    private String salt;

    @_DDL_Column(name = "cr_time", type = SqlType.TIMESTAMP, defaultFunction = MysqlDriver.CURRENT_TIMESTAMP, comment = "创建时间")
    private java.sql.Timestamp crTime;

    @_DDL_Column(name = "up_time", type = SqlType.TIMESTAMP, defaultFunction = MysqlDriver.CURRENT_TIMESTAMP_ON_UPDATE, comment = "最后更新时间")
    private java.sql.Timestamp upTime;

    @_DDL_Column(name = "log_time", type = SqlType.TIMESTAMP, comment = "上次登录时间")
    private java.sql.Timestamp logTime;

    @_DDL_Column(name = "refresh_token", type = SqlType.VARCHAR, size = 32, comment = "刷新token")
    private String refreshToken;

}
